﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using SmartEP.Presenter;

namespace SmartDesktop
{
    public partial class Step8View : MedicalHistoryBaseView, IStep8View
    {
        public Step8View(PatientCarePresenter presenter)
            : base(presenter)
        {
            InitializeComponent();
            this.Name = "Registration Step 8";
            MainForm.BarCaption.Text = this.Name;

            this.step = 8;
            this.GroupStep = GroupStepType.MedicalHistory;
        }

        #region Property
        public bool NeurologicHeadaches
        {
            get
            {
                return rdNeurologicYes.Checked;
            }
            set
            {
                rdNeurologicYes.Checked = value;
            }
        }

        public bool Migraines
        {
            get
            {
                return rdMigrainesYes.Checked;
            }
            set
            {
                rdMigrainesYes.Checked = value;
            }
        }

        public bool Seizures
        {
            get
            {
                return rdSeizuresYes.Checked;
            }
            set
            {
                rdSeizuresYes.Checked = value;
            }
        }

        public bool LossOfVision
        {
            get
            {
                return rdLossOfVissionYes.Checked;
            }
            set
            {
                rdLossOfVissionYes.Checked = value;
            }
        }

        public bool BlurredVision
        {
            get
            {
                return rdBlurredVisionYes.Checked;
            }
            set
            {
                rdBlurredVisionYes.Checked = value;
            }
        }

        public bool DistortedVisionOrHalos
        {
            get
            {
                return rdDistortedYes.Checked;
            }
            set
            {
                rdDistortedYes.Checked = value;
            }
        }

        public bool LossOfSideVision
        {
            get
            {
                return rdLossOfSideVisionYes.Checked;
            }
            set
            {
                rdLossOfSideVisionYes.Checked = value;
            }
        }

        public bool DoubleVision
        {
            get
            {
                return rdDoubleVisionYes.Checked;
            }
            set
            {
                rdDoubleVisionYes.Checked = value;
            }
        }

        public bool Dryness
        {
            get
            {
                return rdDrynessYes.Checked;
            }
            set
            {
                rdDrynessYes.Checked = value;
            }
        }

        public bool MucousDischarge
        {
            get
            {
                return rdMucousDischargeYes.Checked;
            }
            set
            {
                rdMucousDischargeYes.Checked = value;
            }
        }

        public bool Redness
        {
            get
            {
                return rdRednessYes.Checked;
            }
            set
            {
                rdRednessYes.Checked = value;
            }
        }

        public bool SandyOrGrittyFeeling
        {
            get
            {
                return rdSandyOrGrittyYes.Checked;
            }
            set
            {
                rdSandyOrGrittyYes.Checked = value;
            }
        }

        public bool Itching
        {
            get
            {
                return rdItchingYes.Checked;
            }
            set
            {
                rdItchingYes.Checked = value;
            }
        }

        public bool Burning
        {
            get
            {
                return rdBurningYes.Checked;
            }
            set
            {
                rdBurningYes.Checked = value;
            }
        }

        public bool ForeignBodySensation
        {
            get
            {
                return rdForeignBodyYes.Checked;
            }
            set
            {
                rdForeignBodyYes.Checked = value;
            }
        }

        public bool ExcessiveTearingWatering
        {
            get
            {
                return rdExcessiveTearingYes.Checked;
            }
            set
            {
                rdExcessiveTearingYes.Checked = value;
            }
        }

        public bool GlareLightSensitivity
        {
            get
            {
                return rdGlareSensitivityYes.Checked;
            }
            set
            {
                rdGlareSensitivityYes.Checked = value;
            }
        }
        #endregion

        private void btnContinue_Click(object sender, EventArgs e)
        {
            this.presenter.DisplayNextStep(this.step);
        }

        private void btnBack_Click(object sender, EventArgs e)
        {
            this.presenter.BackToPreviousStep(this.step);
        }

    }
}
